package dao

import "schools/api-getaway/inits/mysql"

func FindUsername[T any](data *T, username string) error {
	return mysql.DB.Debug().Where("username = ?", username).Limit(1).Find(&data).Error
}
